﻿
namespace Marmat.Forms.Views
{
    namespace DataGrid
    {
        public class AfterMoveRowEventArgs
        {
            internal AfterMoveRowEventArgs(Forms.DataGrid Grid, int OldIndex, int NewIndex)
            {
                this._GridControl = Grid;
                this._OldIndex = OldIndex;
                this._NewIndex = NewIndex;
            }

            /// <summary>
            /// 触发事件的表格
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public Forms.DataGrid GridControl
            {
                get
                {
                    return this._GridControl;
                }
            }

            private Forms.DataGrid _GridControl;

            /// <summary>
            /// 整数型，移动前的位置
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int OldIndex
            {
                get
                {
                    return this._OldIndex;
                }
            }

            private int _OldIndex;

            /// <summary>
            /// 整数型，移动后的位置
            /// </summary>
            /// <value></value>
            /// <returns></returns>
            /// <remarks></remarks>
            public int NewIndex
            {
                get
                {
                    return this._NewIndex;
                }
            }

            private int _NewIndex;
        }
    }
}